package com.ken.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ken.entity.DishFlavor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 菜品口味Mapper接口
 */
@Mapper
public interface DishFlavorMapper extends BaseMapper<DishFlavor> {
    /**
     * 根据菜品id 查询对应的口味数据(可能有多个)
     * @param dishId
     * @return
     */
    @Select("select * from dish_flavor where dish_id=#{dishId}")
    List<DishFlavor> getByDishId(Long dishId);
} 